Hi all, Object o = current string objectIdentifier = identifier(o) string objectNumber = number(o) int objectLevel = level(o) print "Object \"" objectIdentifier "\" is at level " objectLevel " \n" print "Its relative position is " objectNumber "\n"
-R-E- DXL: <Line:2> null Object parameter was passed into argument position 1 -I- DXL: execution halted
SystemAdmin - Fri Oct 22 13:37:32 EDT 2010 |
Re: Trouble setting current object
The notion of 'current' is complex and is tied to the opening of modules and the context of the DXL. In your case, I suspect that you opened the module but then opened the DXL window from the DOORS explorer, in which case the DXL context is 'Folder' and it doesn't know anything about your open module. Module mCurr = current() if (null mCurr) // then print "no current module\n" else print "current module: '" (name(mCurr)) "\t" (fullName(mCurr)) "\n"
o = current(mCurr)
Module g_mOriginal = current()
if (null g_mOriginal or
type(g_mOriginal) "" != "Formal")
{errorBox("Run from open Formal module."); halt} // ** HALT
current = g_mOriginal or o = current(g_mOriginal)
Module mCurr = current current = g_mOriginal ... do commands presume current module if (!null mCurr) mCurr = current
current = g_mOriginal current = o
|
Re: Trouble setting current object llandale - Fri Oct 22 14:53:38 EDT 2010
The notion of 'current' is complex and is tied to the opening of modules and the context of the DXL. In your case, I suspect that you opened the module but then opened the DXL window from the DOORS explorer, in which case the DXL context is 'Folder' and it doesn't know anything about your open module. Module mCurr = current() if (null mCurr) // then print "no current module\n" else print "current module: '" (name(mCurr)) "\t" (fullName(mCurr)) "\n"
o = current(mCurr)
Module g_mOriginal = current()
if (null g_mOriginal or
type(g_mOriginal) "" != "Formal")
{errorBox("Run from open Formal module."); halt} // ** HALT
current = g_mOriginal or o = current(g_mOriginal)
Module mCurr = current current = g_mOriginal ... do commands presume current module if (!null mCurr) mCurr = current
current = g_mOriginal current = o
All in alphabet soup indeed -- I guess next time I'll just have to open a few more cans! |